package com.biz.hunter.dao;

import com.biz.hunter.db.entity.MemberPO;
import com.biz.hunter.dbutil.BaseDAO;
import org.springframework.stereotype.Repository;

@Repository
public class MemberDAO {
    public MemberPO getByPhone(String phone,String openid) {
        String sql = "select * from tb_member where paystate = 1 and (phone = ? or openid = ?) limit 0,1";
        return BaseDAO.queryForObject(MemberPO.class,sql,phone,openid);
    }
}
